package com.huage.courseplatform.satoken.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.huage.courseplatform.application.model.entity.SysDict;
import com.huage.courseplatform.framework.core.IBaseService;
import com.huage.courseplatform.satoken.model.entity.User;
import com.huage.courseplatform.satoken.model.vo.UserVO;

import java.util.List;

public interface UserService extends IBaseService<User> {
     User addUserAndRole(User user, List<String> roleIds);

     User updateUserAndRole(User user, List<String> roleIds);

     String removeUserAndRoleById(String id);

     UserVO getUserAndRoleById(String id);

     void updatePassword(String userId,String oldPassword,String newPassword);

     void resetPassword(String userId);

     Page<UserVO> getUserAndRolesPage(Page page,QueryWrapper<UserVO> queryWrapper);



}
